Optimal. Leaf size=184 \[ -\frac {3 (c+d)^2 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{16 \sqrt {2} a^{5/2} \sqrt {c-d} f}-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c+7 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a f (a+a \sin (e+f x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.35, antiderivative size = 184, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {2844, 3057, 12,
2861, 214} \begin {gather*} -\frac {3 (c+d)^2 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{16 \sqrt {2} a^{5/2} f \sqrt {c-d}}-\frac {(3 c+7 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a f (a \sin (e+f x)+a)^{3/2}}-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a \sin (e+f x)+a)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 214
Rule 2844
Rule 2861
Rule 3057
Rubi steps
\begin {align*} \int \frac {(c+d \sin (e+f x))^{3/2}}{(a+a \sin (e+f x))^{5/2}} \, dx &=-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {\int \frac {-\frac {1}{2} a \left (3 c^2+6 c d-d^2\right )-a d (c+3 d) \sin (e+f x)}{(a+a \sin (e+f x))^{3/2} \sqrt {c+d \sin (e+f x)}} \, dx}{4 a^2}\\ &=-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c+7 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a f (a+a \sin (e+f x))^{3/2}}+\frac {\int \frac {3 a^2 (c-d) (c+d)^2}{4 \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{8 a^4 (c-d)}\\ &=-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c+7 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a f (a+a \sin (e+f x))^{3/2}}+\frac {\left (3 (c+d)^2\right ) \int \frac {1}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}} \, dx}{32 a^2}\\ &=-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c+7 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a f (a+a \sin (e+f x))^{3/2}}-\frac {\left (3 (c+d)^2\right ) \text {Subst}\left (\int \frac {1}{2 a^2-(a c-a d) x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{16 a f}\\ &=-\frac {3 (c+d)^2 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c-d} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{16 \sqrt {2} a^{5/2} \sqrt {c-d} f}-\frac {(c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c+7 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{16 a f (a+a \sin (e+f x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(396\) vs. \(2(184)=368\).
time = 6.94, size = 396, normalized size = 2.15 \begin {gather*} \frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^4 \left (-\frac {2 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (c+d \sin (e+f x)) (7 c+3 d+(3 c+7 d) \sin (e+f x))}{\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3}+\frac {3 (c+d)^2 \left (\log \left (1+\tan \left (\frac {1}{2} (e+f x)\right )\right )-\log \left (c-d+2 \sqrt {c-d} \sqrt {\frac {1}{1+\cos (e+f x)}} \sqrt {c+d \sin (e+f x)}+(-c+d) \tan \left (\frac {1}{2} (e+f x)\right )\right )\right )}{\frac {\sec ^2\left (\frac {1}{2} (e+f x)\right )}{2+2 \tan \left (\frac {1}{2} (e+f x)\right )}-\frac {-\frac {1}{2} (c-d) \sec ^2\left (\frac {1}{2} (e+f x)\right )+\frac {\sqrt {c-d} \left (\frac {1}{1+\cos (e+f x)}\right )^{3/2} (d+d \cos (e+f x)+c \sin (e+f x))}{\sqrt {c+d \sin (e+f x)}}}{c-d+2 \sqrt {c-d} \sqrt {\frac {1}{1+\cos (e+f x)}} \sqrt {c+d \sin (e+f x)}+(-c+d) \tan \left (\frac {1}{2} (e+f x)\right )}}\right )}{32 f (a (1+\sin (e+f x)))^{5/2} \sqrt {c+d \sin (e+f x)}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(3049\) vs.
\(2(155)=310\).
time = 11.34, size = 3050, normalized size = 16.58
method | result | size |
default | \(\text {Expression too large to display}\) | \(3050\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 559 vs.
\(2 (164) = 328\).
time = 0.58, size = 1364, normalized size = 7.41 \begin {gather*} \left [\frac {3 \, {\left ({\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right )^{2} - 4 \, c^{2} - 8 \, c d - 4 \, d^{2} - 2 \, {\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right ) + {\left ({\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right )^{2} - 4 \, c^{2} - 8 \, c d - 4 \, d^{2} - 2 \, {\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {2 \, a c - 2 \, a d} \log \left (\frac {{\left (a c^{2} - 14 \, a c d + 17 \, a d^{2}\right )} \cos \left (f x + e\right )^{3} - 4 \, a c^{2} - 8 \, a c d - 4 \, a d^{2} - {\left (13 \, a c^{2} - 22 \, a c d - 3 \, a d^{2}\right )} \cos \left (f x + e\right )^{2} - 4 \, {\left ({\left (c - 3 \, d\right )} \cos \left (f x + e\right )^{2} - {\left (3 \, c - d\right )} \cos \left (f x + e\right ) + {\left ({\left (c - 3 \, d\right )} \cos \left (f x + e\right ) + 4 \, c - 4 \, d\right )} \sin \left (f x + e\right ) - 4 \, c + 4 \, d\right )} \sqrt {2 \, a c - 2 \, a d} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c} - 2 \, {\left (9 \, a c^{2} - 14 \, a c d + 9 \, a d^{2}\right )} \cos \left (f x + e\right ) - {\left (4 \, a c^{2} + 8 \, a c d + 4 \, a d^{2} - {\left (a c^{2} - 14 \, a c d + 17 \, a d^{2}\right )} \cos \left (f x + e\right )^{2} - 2 \, {\left (7 \, a c^{2} - 18 \, a c d + 7 \, a d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) - 4\right )} \sin \left (f x + e\right ) - 2 \, \cos \left (f x + e\right ) - 4}\right ) + 8 \, {\left ({\left (3 \, c^{2} + 4 \, c d - 7 \, d^{2}\right )} \cos \left (f x + e\right )^{2} + 4 \, c^{2} - 8 \, c d + 4 \, d^{2} + {\left (7 \, c^{2} - 4 \, c d - 3 \, d^{2}\right )} \cos \left (f x + e\right ) - {\left (4 \, c^{2} - 8 \, c d + 4 \, d^{2} - {\left (3 \, c^{2} + 4 \, c d - 7 \, d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{128 \, {\left ({\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c - a^{3} d\right )} f + {\left ({\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c - a^{3} d\right )} f\right )} \sin \left (f x + e\right )\right )}}, -\frac {3 \, {\left ({\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right )^{2} - 4 \, c^{2} - 8 \, c d - 4 \, d^{2} - 2 \, {\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right ) + {\left ({\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right )^{2} - 4 \, c^{2} - 8 \, c d - 4 \, d^{2} - 2 \, {\left (c^{2} + 2 \, c d + d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {-2 \, a c + 2 \, a d} \arctan \left (\frac {\sqrt {-2 \, a c + 2 \, a d} \sqrt {a \sin \left (f x + e\right ) + a} {\left ({\left (c - 3 \, d\right )} \sin \left (f x + e\right ) - 3 \, c + d\right )} \sqrt {d \sin \left (f x + e\right ) + c}}{4 \, {\left ({\left (a c d - a d^{2}\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + {\left (a c^{2} - a c d\right )} \cos \left (f x + e\right )\right )}}\right ) - 4 \, {\left ({\left (3 \, c^{2} + 4 \, c d - 7 \, d^{2}\right )} \cos \left (f x + e\right )^{2} + 4 \, c^{2} - 8 \, c d + 4 \, d^{2} + {\left (7 \, c^{2} - 4 \, c d - 3 \, d^{2}\right )} \cos \left (f x + e\right ) - {\left (4 \, c^{2} - 8 \, c d + 4 \, d^{2} - {\left (3 \, c^{2} + 4 \, c d - 7 \, d^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{64 \, {\left ({\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c - a^{3} d\right )} f + {\left ({\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right )^{2} - 2 \, {\left (a^{3} c - a^{3} d\right )} f \cos \left (f x + e\right ) - 4 \, {\left (a^{3} c - a^{3} d\right )} f\right )} \sin \left (f x + e\right )\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (c + d \sin {\left (e + f x \right )}\right )^{\frac {3}{2}}}{\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2}}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________